package com.zzyl.mapper;

import com.zzyl.entity.RoleResource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RoleResourceMapper {
    void batchInsert(List<RoleResource> list);

    @Select("Select count(0)  from sys_user_role where role_id = #{id}")
    Integer selectUserByRoleId(Long id);
}
